<!--<?php
print <<<EOT
-->
<div class="m"></div>
<form action="$basename" method="post" name="upload" enctype="multipart/form-data">
<div class="t">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr class="head">
    <td colspan="2">上传附件</td>
    </tr>
  <tr class="line">
    <td width="25%">上传文件数量</td>
    <td width="75%"><input name="uploadnum" type="text" class="input" id="uploadnum" size="10">
      <input type="button" name="Submit" value="增加" class="btn" onClick="MakeUpload();">
      <input type="button" name="Submit2" value="恢复" class="btn" onClick="ResetUpload();"></td>
  </tr>
  <tr class="line">
    <td>自动缩略图片文件</td>
    <td><input name="automini" type="checkbox" id="automini" value="1" />
      自动缩略 
        </td>
  </tr>
  <tr class="line">
    <td>缩略标准</td>
    <td>宽度 <input name="width" type="text" class="input" id="width" size="5" /> 
      像素&nbsp;&nbsp;&nbsp;
        高度 <input name="height" type="text" class="input" id="height" size="5" /> 
        像素 质量
        <input name="quality" type="text" class="input" id="quality" size="5" maxlength="2" />
        %</td>
  </tr>
  <tr class="line">
    <td colspan="2">最多可一次性上传10个附件,系统每次最大上传文件限制<span class="s3">$upload_file_size </span></td>
    </tr>
  <tr class="line">
    <td colspan="2">
	上传文件1:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="file" name="file1" class="input" size="50"> <input type="text" name="fileintro1" class="input" />
	文件描述<br>
	上传文件2:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="file" name="file2" class="input" size="50">
	<input type="text" name="fileintro2" class="input" />
文件描述<br>
	上传文件3:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="file" name="file3" class="input" size="50">
	<input type="text" name="fileintro3" class="input" />
文件描述<br>
	<span id='uploadfield'></span>	</td>
    </tr>
  <tr class="line">
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
</table>
</div>
<div class="sub">
  <input name="step" type="hidden" id="step" value="2">
  <input type="submit" name="Submit3" value="提交" class="btn">
</div>
</form>
<script language='javascript'>
var startNum = 4;
function MakeUpload()
{
   var upfield = document.getElementById("uploadfield");
   var addNum = document.upload.uploadnum.value;
   if(addNum=='') addNum=1;
   addNum = parseInt(addNum);
   var endNum =  addNum+startNum;
   if(endNum>11) endNum = 11;
   for(startNum;startNum<endNum;startNum++){
	   upfield.innerHTML += "上传文件"+startNum+":&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type='file' name='file"+startNum+"' class='input' size='50' /> <input type='text' name='fileintro'"+startNum+" class='input' /> 文件描述<br/>";
   }
}
function ResetUpload()
{
   var upfield = document.getElementById("uploadfield");
   upfield.innerHTML = "";
   startNum = 4;
}
</script>
<!--
EOT;
?>-->